package com.wanxi.test;

public class LogicOperate {
    public static void main(String[] args) {
//        System.out.println(true&false);
//        System.out.println(true&true);
//        System.out.println(false&false);
//        System.out.println("--------------");
//        System.out.println(true|false);
//        System.out.println(true|true);
//        System.out.println(false|false);
//        System.out.println("-----------");
//        System.out.println(!false|true);
//        System.out.println(!false);
//        System.out.println(!true);
        System.out.println(1 < 2 & 2 > 3);
        System.out.println(bb() && aa());

    }

    private static boolean bb() {
        System.out.println("bb");
        return false;
    }

    private static boolean aa() {
        System.out.println("aa");
        return true;
    }

}
